import http from '../http'
export default {
  getPosts (params) {
    return http.get('posts', {params: {...params}})
  },
  getPostById (id) {
    return http.get(`posts/${id}`)
  }
}
